package indi.zhifa.core.auth.util;

import indi.zhifa.core.auth.interfaces.IAuthObject;
import indi.zhifa.core.auth.interfaces.ITokenObject;

public interface ITokenUtil {
    String encrypt(ITokenObject pTokenObject);
    <T extends IAuthObject> T decrypt(String pToken);
    <T extends IAuthObject> T getAuthObject();
    void setTokenObject(IAuthObject pIAuthObject);
    void clearTokenObject();
    boolean hasTokenObject();
}
